package com.mlnx.device.dao.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mlnx.device.entity.EcgDevice;
import com.mlnx.device.pojo.dto.EcgDeviceDto;
import com.mlnx.device.pojo.form.EcgDeviceFilterForm;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by amanda.shan on 2019-09-21.
 */
public interface EcgDeviceMapper extends BaseMapper<EcgDevice> {

    EcgDeviceDto selectEcgDeviceDto(String deviceId);

    List<EcgDeviceDto> selectEcgDevicesByNumList(Map<String, Object> paramMap);

    List<EcgDeviceDto> selectAllEcgDevices();

    Page<EcgDeviceDto> selectDeviceDtoPage(Page<EcgDeviceDto> page, @Param("filter") EcgDeviceFilterForm ecgDeviceFilterForm, @Param("sorter") Map<String, String> sorter);
}
